package com.qzd.adapter;

import com.qzd.adapter.InterfaceAdapter.Cat;
import com.qzd.adapter.InterfaceAdapter.DC5Adapter;
import com.qzd.adapter.InterfaceAdapter.Dog;

public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat();
        Dog dog = new Dog();
        DC5Adapter adaptercat = new DC5Adapter(cat);
        DC5Adapter adapterdog = new DC5Adapter(dog);
        /**
         * 以后要实现新的逻辑只需要添加新的类
         */
        adaptercat.spack();
        adapterdog.spack();
    }
}
